Meson: Support Windows builds
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 1 Aug 2017 08:49:08 +0000 (16:49 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 20 Oct 2017 09:30:58 +0000 (17:30 +0800)
commit18abb78bfd1718e1a4f54333518959bc059cf0af
tree77a531ce0a13d3e298ec6a8a826a78fe14b4f712
parent73ef640736ae81bb7aa0ce83db6909a04ce34c50
Meson: Support Windows builds

Add the necessary machinery into the Meson definition files so that we
can build for Windows.

Since we don't have Wayland or X support for our use case here, disable
them once we know that we are building for Windows, as they are
(otherwise) enabled by default, and enable the items that need to be
built for Windows builds.

Exclude gtk4-launch from Windows builds as that is something that
is not supported on Windows.

As we won't have gio-unix on Windows, and PangoFT2 is optional, don't use
fallbacks for them when we are on Windows (but do use fallbacks for
gio-win32, as it will be used).

Also, clean up meson.build a bit as we can just force-include
msvc_recommended_pragmas.h from GLib since we depend on GLib, and so we
can handle these warnings from msvc_recommended_pragmas.h instead.

https://bugzilla.gnome.org/show_bug.cgi?id=785210
gdk/meson.build
gtk/meson.build
meson.build